<?php include_once($_SERVER['DOCUMENT_ROOT']."/controller/common/common_setting_unit.php"); ?>



<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <!--網站語言-->
    <meta http-equiv="Content-Language" content="zh-cn">
    <!--網站編碼-->
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title><?php include '../coresection/title.php'; ?></title>
    <link rel="Shortcut Icon" href="../coresection/logoicon.ico">


</head>

<body>



<!-- 读取前台的function，用来获取板块显示隐藏 -->
<!-- 读取前台的config,，用来获取板块显示隐藏  -->

<?
//设置需要搜索的表格的前缀后缀
global $table_Prefix;
$table_Suffix = "threed";
$table = $table_Prefix . $table_Suffix;
//设置需要搜索的表格的前缀后缀

?>


<?php
$nid = $_REQUEST['nid'];

$que = mysql_query("SELECT COUNT(nid) FROM $table where detail_longnid = '$nid'");
$sum = mysql_result($que, 0);

if($sum>0){
    ?>
    <script type="text/javascript">
        document.location.href = "detail-edit.php?nid=<?echo $nid?>";
    </script>
<?
}else{
?>
    <script type="text/javascript">
        document.location.href = "detail-add.php?nid=<?echo $nid?>";
    </script>
<?
}

?>
</body>
</html>